mathematics of decision tree